﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link rel="stylesheet" href="../assets/css/bootstrap.min.css" />
    <link rel="stylesheet" href="../assets/css/font-awesome.min.css" />
    <link rel="stylesheet" href="../assets/css/select2.css" />
    <link rel="stylesheet" href="../assets/css/ace.min.css" />
</head>
<body ng-app="upLoadApp" ng-controller="upLoadCtr" class="page-content">

    <div class="widget-main">

        <div>
            <ul class="wizard-steps">
                <li ng-class="{active:isPassedStep(0)}">
                    <span class="step">1</span>
                    <span class="title">上传程序集文件</span>
                </li>

                <li ng-class="{active:isPassedStep(1)}">
                    <span class="step">2</span>
                    <span class="title">创建通道</span>
                </li>
            </ul>
        </div>

        <br />
        <div class="step-content">
            <div ng-class="isActiveStep(0)?'step-pane active':'step-pane'">
                <div class="center">
                    <input id="fileToUpload" type="file" size="20" name="file" class="input">
                </div>
            </div>

            <form role="form" name="authForm" novalidate>
                <div class="step-pane " ng-class="isActiveStep(1)?'step-pane active':'step-pane'">
                    <div>
                        folder:
                    </div>
                    <div>
                        <label>
                            id：
                        </label>
                        <div>
                            <input class="input-xxlarge" type="text" readonly="readonly" required ng-model='uploadMediaInfo.id' />
                        </div>
                    </div>
                    <div>
                        <label>
                            file：
                        </label>
                        <div>
                            <input class="input-xxlarge" type="text" readonly="readonly" required ng-model='uploadMediaInfo.relativeFilePath' />
                        </div>
                    </div>
                    <div>
                        <label>
                            描述：
                        </label>
                        <div>
                            <span class="input-icon input-icon-right">
                                <input class="input-xxlarge" type="text" required ng-model='uploadMediaInfo.description' />
                            </span>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <br />
        <div class="wizard-actions">
            <div class="btn-group pull-left">
                <button class="btn btn-danger btn-sm pull-left" onclick="cppei.closeDialog(false, {value: 2 });" ng-style="{display:isVisible(0)}">
                    关闭
                </button>

                <button class="btn btn-danger btn-sm pull-left" ng-style="{display:isVisible(1)}" ng-click="prev()">
                    上一步
                </button>
            </div>

            <div class="btn-group pull-right">
                <button class="btn btn-success btn-sm btn-next" ng-click="ajaxFileUpload()" ng-style="{display:isVisible(0)}">
                    下一步
                </button>

                <!--<button class="btn btn-success btn-sm btn-next" ng-click="onFinish()" ng-style="{display:isVisible(1)}">
                    完成
                </button>-->

                <button class="btn btn-sm btn-primary" ng-click="onCreate(authForm.$invalid)" ng-style="{display:isVisible(1)}">
                    <i class="icon-save bigger-120"></i>
                    创建
                </button>
            </div>

        </div>

    </div>

    <script src="../assets/js/jquery-2.0.3.min.js"></script>
    <script src="../assets/js/bootstrap.min.js"></script>
    <script src="../assets/js/Promise.js"></script>
    <script src="../assets/js/typeahead-bs2.min.js"></script>
    <script src="../assets/js/ace-elements.min.js"></script>
    <script src="../assets/js/ace.min.js"></script>
    <script src="../assets/js/bootbox.min.js"></script>
    <script src="../assets/js/angular-1.4.1.min.js"></script>
    <script src="../assets/js/cppei/cppei.view.js"></script>
    <script src="../assets/js/cppei/cppei.paginationPlugin.js"></script>
    <script src="../assets/js/cppei/cppei.validate.js"></script>
    <script src="../assets/js/ajaxfileupload.js"></script>
    <script src="media-upload.js"></script>

    <script>
        cppei.run(view);
    </script>

</body>
</html>
